<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>指派查询确认</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/app.css">
    <link rel="stylesheet" href="../../../css/wx/style.css"/>
    <script type="text/javascript">
        var pageConfig = {
            jss: ["app/zpcxConfirm/zpcxConfirm"]
        };
    </script>
    <script data-main="../../../js/wx/public/config" src="../../../js/require.js"></script>
    <style>

        .mui-control-content {
            min-height: -webkit-fill-available;
        }

        .mui-bar-nav ~ .mui-content .mui-pull-top-pocket {
            top: 0;
        }

        .mui-table-view-cell:after {
            height: 0;
        }

        .mui-card {
            margin-bottom: 0;
        }

        .footBtn .mui-checkbox {
            background: #fff;
            line-height: 50px;
        }

        .footBtn .mui-checkbox input {
            top: -3px;
            left: 10px !important;
        }

        .footBtn button {
            font-size: 15px;
        }

        .footBtn.flexl .mui-checkbox.mui-left label {
            padding-left: 36px;
        }

        .mui-slider {
            position: initial;
        }

        .mui-fullscreen .mui-segmented-control ~ .mui-slider-group {
            top:100px;
        }

        .p58{
            padding: 10px 0 1px !important;
        }

        .mui-slider{
            margin-top: 58px !important;
        }
    </style>

</head>

<body>
<div class="mui-content mui-fullscreen">
    <div id="searchDiv" class="mui-input-row searchBox">
        <form action="javascript:app.returnFalse();">
            <i class="mui-icon mui-icon-search"></i>
            <input @search="toSearch" type="search" class="mui-input-clear" placeholder="品号|客户名称"
                   v-model.trim="keyword">
        </form>
    </div>

    <div id="slider" class="mui-slider responseSlider xdcx wf-slider-bottom">
        <div id="sliderSegmentedControl"
             class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted shadow p58">
            <a class="mui-control-item" href="#item1mobile">
                未确认
            </a>
            <a class="mui-control-item" href="#item2mobile">
                已确认
            </a>
            <!--            <a class="mui-control-item" href="#item3mobile">-->
            <!--                全部-->
            <!--            </a>-->
        </div>
        <div id="sliderProgressBar" class="mui-slider-progress-bar mui-col-xs-6"></div>
        <div class="mui-slider-group">
            <div id="item1mobile" style="top: 3px;" class="mui-slider-item mui-control-content mui-active">
                <div id="scrollN" class="mui-scroll-wrapper">
                    <div class="mui-scroll">
                        <zpcxconfirm-listitem :model="items"></zpcxconfirm-listitem>
                    </div>
                </div>
            </div>
            <div id="item2mobile" style="top: 3px;"  class="mui-slider-item mui-control-content">
                <div id="scrollY" class="mui-scroll-wrapper">
                    <div class="mui-scroll">
                        <zpcxconfirm-listitem :model="items"></zpcxconfirm-listitem>
                    </div>
                </div>
            </div>
            <!--            <div id="item3mobile" class="mui-slider-item mui-control-content">-->
            <!--                <div id="scroll" class="mui-scroll-wrapper">-->
            <!--                    <div class="mui-scroll">-->
            <!--                        <zpcxconfirm-listitem :model="items"></zpcxconfirm-listitem>-->
            <!--                    </div>-->
            <!--                </div>-->
            <!--            </div>-->

        </div>
    </div>
    <div id="footdiv" class="footBtn flexl shadow2">
        <div class="mui-checkbox mui-left" style="flex: 1;"><label>全选</label>
            <input type="checkbox" id="allCheck" style="top: 17px;">
        </div>
        <button v-if="inx==1" @tap.stop="update('N')" type="button" class="wf-pulic-bg edit" style="width: 30%;" id="btn_N">取消确认</button>
        <button v-if="inx==0" @tap.stop="update('Y')" type="button" class="wf-second-bg edit" style="width: 20%;" id="btn_Y">确认</button>
        <button v-if="inx==0" @tap.stop="update('X')" type="button" class="wf-pulic-bg edit" style="width: 20%;" id="btn_X">作废</button>
    </div>
</div>

<script id="item-template" type="text/x-template">
    <ul class="mui-table-view">
        <li class="mui-table-view-cell" v-for="item in model">
            <div v-if="item.GWCOACTI=='N'" class="mui-card">
                <div class="mui-card-header">
                    <div class="mui-checkbox mui-left" style="flex: 1 1 0%;">
                        <label>{{item.GWAKL004}} (线人:{{item.GWCO006}})</label>
                        <input v-model="item.checked" type="checkbox" style="left: -5px; top:0;">
                    </div>
                    <p><i class="iconfont icon icon-0011"></i>{{item.GWCODOCDATE}}</p>
                </div>
                <div class="mui-card-content">
                    <div class="mui-card-content-inner slider mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
                        <ul class="mui-scroll">
                            <li v-for="c in item.details" class="mui-control-item">
                                <a href="#"><img :src="c.GWAM015 | goodsImgsUtils"></a>
                                <div class="filer">
                                    <p>￥{{c.GWCO004 |priceFMT}}<em>/</em>
                                        <span>{{c.GWCO003}}</span></p>
                                    <p class="wf-font-color"><i class="iconfont icon icon-0012"></i>
                                        {{c.GWCO005|priceFMT}}</p>
                                </div>
                            </li>

                        </ul>
                    </div>
                    <div class="flex-just" style="padding: 5px 15px"><p>单号：{{item.GWCODOCNO}}</p>
                        <!--<p class="wf-font-color">¥1000.00</p>-->
                    </div>
                </div>
                <div v-if="item.GWCOACTI=='N'" class="mui-card-footer nonSumit">
                    <p>
                        <a href="#" @tap.stop="update(item,'Y')" class="wf-sfont-color wf-sborder-color">确认</a>
                        <a href="#" @tap.stop="update(item,'X')" class="wf-font-color wf-border-color">作废</a>

                    </p>
                </div>
                <div v-if="item.GWCOACTI=='Y'||item.GWCOACTI=='Z'" class="mui-card-footer sumit">
                    <p>
                        <a href="#" @tap.stop="update(item,'N')" class="wf-font-color wf-border-color">取消确认</a>

                    </p>
                </div>
            </div>

            <!-- 现在是点击图片部分跳转到进度页面 -->
            <div v-if="item.GWCOACTI=='Y'||item.GWCOACTI=='Z'" class="mui-card">
                <div class="mui-card-header">
                    <div class="mui-checkbox mui-left" style="flex: 1 1 0%;">
                        <label>{{item.GWAKL004}} (线人:{{item.GWCO006}})</label>
                        <input v-model="item.checked" type="checkbox" style="left: -5px; top:0;">
                    </div>
                    <p><i class="iconfont icon icon-0011"></i>{{item.GWCODOCDATE}}</p>
                </div>
                <div class="mui-card-content">
                    <div class="mui-card-content-inner slider mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
                        <ul class="mui-scroll">
                            <li v-for="c in item.details" class="mui-control-item">
                                <a href="#"><img :src="c.GWAM015 | goodsImgsUtils"></a>
                                <div class="filer">
                                    <p>￥{{c.GWCO004 |priceFMT}}<em>/</em>
                                        <span>{{c.GWCO003}}</span></p>
                                    <p class="wf-font-color"><i class="iconfont icon icon-0012"></i>
                                        {{c.GWCO005|priceFMT}}</p>
                                </div>
                            </li>

                        </ul>
                    </div>
                    <div class="flex-just" style="padding: 5px 15px"><p>单号：{{item.GWCODOCNO}}</p>
                        <!--<p class="wf-font-color">¥1000.00</p>-->
                    </div>
                </div>
                <div v-if="item.GWCOACTI=='N'" class="mui-card-footer nonSumit">
                    <p>
                        <a href="#" @tap.stop="update(item,'Y')" class="wf-sfont-color wf-sborder-color">确认</a>
                        <a href="#" @tap.stop="update(item,'X')" class="wf-font-color wf-border-color">作废</a>

                    </p>
                </div>
                <div v-if="item.GWCOACTI=='Y'||item.GWCOACTI=='Z'" class="mui-card-footer sumit">
                    <p>
                        <a href="#" @tap.stop="update(item,'N')" class="wf-sfont-color wf-sborder-color">取消确认</a>
                    </p>
                </div>
            </div>
        </li>
    </ul>
</script>
</body>
</html>